using DevExpress.Utils;
using DevExpress.XtraBars;
using DevExpress.XtraEditors;
using Common.Class;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Common.Base
{
	public class XucDetailList : XucBase
	{
		private IContainer components = null;
		protected PanelControl plTop;
		protected ImageCollection img;
		private XucBaseBarD ucBar;
		protected XucBaseBarD Bar
		{
			get
			{
				return this.ucBar;
			}
		}
		public XucDetailList()
		{
			this.InitializeComponent();
			this.Init();
		}
		public void Init()
		{
			this.ucBar.ViewChangedClick += new ButtonClickEventHander(this.UcBarViewChangedClick);
			this.ucBar.DeleteClick += new ButtonClickEventHander(this.UcBarDeleteClick);
			this.ucBar.DeleteAllClick += new ButtonClickEventHander(this.UcBarDeleteAllClick);
			this.ucBar.ViewClick += new ButtonClickEventHander(this.UcBarViewClick);
			this.ucBar.ExportClick += new ButtonClickEventHander(this.UcBarExportClick);
			this.ucBar.PrintClick += new ButtonClickEventHander(this.UcBarPrintClick);
			this.ucBar.HistoryClick += new ButtonClickEventHander(this.UcBarHistoryClick);
			this.ucBar.ProductDetailClick += new ButtonClickEventHander(this.UcBarProductDetailClick);
			this.ucBar.CopyClick += new ButtonClickEventHander(this.UcBarCopyClick);
			this.ucBar.StockChanged += new XucBaseBarD.StockChangedEventHander(this.UcBarStockChanged);
			this.ucBar.From = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
			this.ucBar.To = this.ucBar.From.AddMonths(1).AddDays(-1.0);
		}
		private void UcBarDeleteAllClick(object sender)
		{
			this.DeleteAll();
		}
		private void UcBarDeleteClick(object sender)
		{
			this.Delete();
		}
		protected virtual void StockChanged(object value)
		{
			this.Reload();
		}
		private void UcBarStockChanged(object sender, object value)
		{
			this.StockChanged(value);
		}
		private void UcBarCopyClick(object sender)
		{
			this.Copy();
		}
		private void UcBarProductDetailClick(object sender)
		{
			this.ProductDetail();
		}
		private void UcBarHistoryClick(object sender)
		{
			this.History();
		}
		private void UcBarPrintClick(object sender)
		{
			this.Print();
		}
		private void UcBarExportClick(object sender)
		{
			base.Export();
		}
		private void UcBarViewClick(object sender)
		{
			this.Reload();
		}
		public virtual void Reload()
		{
		}
		protected virtual void Copy()
		{
		}
		public virtual void Delete()
		{
		}
		public virtual void DeleteAll()
		{
		}
		public virtual void Print()
		{
		}
		public virtual void History()
		{
		}
		public virtual void ProductDetail()
		{
		}
		private void UcBarViewChangedClick(object sender)
		{
			this.Reload();
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.components = new Container();
			MenuButton menuButton = new MenuButton();
			ItemCommand itemCommand = new ItemCommand();
			ItemCommand itemCommand2 = new ItemCommand();
			ItemCommand itemCommand3 = new ItemCommand();
			ItemCommand itemCommand4 = new ItemCommand();
			ItemCommand itemCommand5 = new ItemCommand();
			ItemCommand itemCommand6 = new ItemCommand();
			ItemCommand itemCommand7 = new ItemCommand();
			ItemCommand itemCommand8 = new ItemCommand();
			ItemCommand itemCommand9 = new ItemCommand();
			ItemCommand itemCommand10 = new ItemCommand();
			ItemCommand itemCommand11 = new ItemCommand();
			ItemCommand itemCommand12 = new ItemCommand();
			ItemCommand itemCommand13 = new ItemCommand();
			ItemCommand itemCommand14 = new ItemCommand();
			ItemCommand itemCommand15 = new ItemCommand();
			ItemCommand itemCommand16 = new ItemCommand();
			ItemCommand itemCommand17 = new ItemCommand();
			ItemCommand itemCommand18 = new ItemCommand();
			ItemCommand itemCommand19 = new ItemCommand();
			ItemCommand itemCommand20 = new ItemCommand();
			ItemCommand itemCommand21 = new ItemCommand();
			ItemCommand itemCommand22 = new ItemCommand();
			ItemCommand itemCommand23 = new ItemCommand();
			ItemCommand itemCommand24 = new ItemCommand();
			ItemCommand itemCommand25 = new ItemCommand();
			ItemCommand itemCommand26 = new ItemCommand();
			ItemCommand itemCommand27 = new ItemCommand();
			ItemCommand itemCommand28 = new ItemCommand();
			ItemCommand itemCommand29 = new ItemCommand();
			ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(XucDetailList));
			this.plTop = new PanelControl();
			this.ucBar = new XucBaseBarD();
			this.img = new ImageCollection(this.components);
			((ISupportInitialize)this.plTop).BeginInit();
			this.plTop.SuspendLayout();
			((ISupportInitialize)this.img).BeginInit();
			base.SuspendLayout();
			this.plTop.Controls.Add(this.ucBar);
			this.plTop.Location = new Point(3, 1);
			this.plTop.Name = "plTop";
			this.plTop.Size = new Size(748, 56);
			this.plTop.TabIndex = 0;
			this.ucBar.All = false;
			this.ucBar.Dock = DockStyle.Fill;
			this.ucBar.From = new DateTime(2009, 7, 25, 22, 57, 46, 531);
			this.ucBar.Id = "";
			this.ucBar.IsClose = CloseOrNew.None;
			this.ucBar.Location = new Point(2, 2);
			this.ucBar.Name = "ucBar";
			this.ucBar.NotSave = false;
			itemCommand.Caption = "";
			itemCommand.Enable = false;
			itemCommand.Visibility = BarItemVisibility.Never;
			menuButton.Add = itemCommand;
			itemCommand2.Caption = "";
			itemCommand2.Enable = false;
			itemCommand2.Visibility = BarItemVisibility.Never;
			menuButton.Cancel = itemCommand2;
			itemCommand3.Caption = "";
			itemCommand3.Enable = false;
			itemCommand3.Visibility = BarItemVisibility.Never;
			menuButton.Change = itemCommand3;
			itemCommand4.Caption = "";
			itemCommand4.Enable = false;
			itemCommand4.Visibility = BarItemVisibility.Never;
			menuButton.Close = itemCommand4;
			itemCommand5.Caption = "";
			itemCommand5.Enable = false;
			itemCommand5.Visibility = BarItemVisibility.Never;
			menuButton.Custom = itemCommand5;
			itemCommand6.Caption = "";
			itemCommand6.Enable = false;
			itemCommand6.Visibility = BarItemVisibility.Never;
			menuButton.Delete = itemCommand6;
			itemCommand7.Caption = "";
			itemCommand7.Enable = false;
			itemCommand7.Visibility = BarItemVisibility.Never;
			menuButton.Export = itemCommand7;
			itemCommand8.Caption = "";
			itemCommand8.Enable = false;
			itemCommand8.Visibility = BarItemVisibility.Never;
			menuButton.Filter = itemCommand8;
			itemCommand9.Caption = "";
			itemCommand9.Enable = false;
			itemCommand9.Visibility = BarItemVisibility.Never;
			menuButton.FilterCustomer = itemCommand9;
			itemCommand10.Caption = "";
			itemCommand10.Enable = false;
			itemCommand10.Visibility = BarItemVisibility.Never;
			menuButton.FilterStock = itemCommand10;
			itemCommand11.Caption = "";
			itemCommand11.Enable = false;
			itemCommand11.Visibility = BarItemVisibility.Never;
			menuButton.Find = itemCommand11;
			menuButton.GClose = false;
			menuButton.GCommand = false;
			menuButton.GExport = false;
			itemCommand12.Caption = "";
			itemCommand12.Enable = false;
			itemCommand12.Visibility = BarItemVisibility.Never;
			menuButton.Go = itemCommand12;
			menuButton.GOption = false;
			menuButton.GPrint = false;
			menuButton.GRecords = false;
			menuButton.GSearchBar = false;
			menuButton.GSettings = false;
			menuButton.GVaildation = false;
			itemCommand13.Caption = "";
			itemCommand13.Enable = false;
			itemCommand13.Visibility = BarItemVisibility.Never;
			menuButton.Import = itemCommand13;
			itemCommand14.Caption = "";
			itemCommand14.Enable = false;
			itemCommand14.Visibility = BarItemVisibility.Never;
			menuButton.Next = itemCommand14;
			itemCommand15.Caption = "";
			itemCommand15.Enable = false;
			itemCommand15.Visibility = BarItemVisibility.Never;
			menuButton.PageSetup = itemCommand15;
			menuButton.PHome = false;
			itemCommand16.Caption = "";
			itemCommand16.Enable = false;
			itemCommand16.Visibility = BarItemVisibility.Never;
			menuButton.Previous = itemCommand16;
			itemCommand17.Caption = "";
			itemCommand17.Enable = false;
			itemCommand17.Visibility = BarItemVisibility.Never;
			menuButton.Print = itemCommand17;
			itemCommand18.Caption = "";
			itemCommand18.Enable = false;
			itemCommand18.Visibility = BarItemVisibility.Never;
			menuButton.PrintPreview = itemCommand18;
			menuButton.PTool = false;
			itemCommand19.Caption = "";
			itemCommand19.Enable = false;
			itemCommand19.Visibility = BarItemVisibility.Never;
			menuButton.Redo = itemCommand19;
			itemCommand20.Caption = "";
			itemCommand20.Enable = false;
			itemCommand20.Visibility = BarItemVisibility.Never;
			menuButton.Refresh = itemCommand20;
			itemCommand21.Caption = "";
			itemCommand21.Enable = false;
			itemCommand21.Visibility = BarItemVisibility.Never;
			menuButton.Save = itemCommand21;
			itemCommand22.Caption = "";
			itemCommand22.Enable = false;
			itemCommand22.Visibility = BarItemVisibility.Never;
			menuButton.SaveAndClose = itemCommand22;
			itemCommand23.Caption = "";
			itemCommand23.Enable = false;
			itemCommand23.Visibility = BarItemVisibility.Never;
			menuButton.SaveAndNew = itemCommand23;
			itemCommand24.Caption = "";
			itemCommand24.Enable = false;
			itemCommand24.Visibility = BarItemVisibility.Never;
			menuButton.Search = itemCommand24;
			itemCommand25.Caption = "";
			itemCommand25.Enable = false;
			itemCommand25.Visibility = BarItemVisibility.Never;
			menuButton.SearchText = itemCommand25;
			itemCommand26.Caption = "";
			itemCommand26.Enable = false;
			itemCommand26.Visibility = BarItemVisibility.Never;
			menuButton.Task = itemCommand26;
			itemCommand27.Caption = "";
			itemCommand27.Enable = false;
			itemCommand27.Visibility = BarItemVisibility.Never;
			menuButton.Undo = itemCommand27;
			itemCommand28.Caption = "";
			itemCommand28.Enable = false;
			itemCommand28.Visibility = BarItemVisibility.Never;
			menuButton.Vaildate = itemCommand28;
			itemCommand29.Caption = "";
			itemCommand29.Enable = false;
			itemCommand29.Visibility = BarItemVisibility.Never;
			menuButton.View = itemCommand29;
			this.ucBar.RibbonBar = menuButton;
			this.ucBar.Size = new Size(744, 52);
			this.ucBar.Status = Actions.None;
			this.ucBar.TabIndex = 0;
			this.ucBar.Title = "";
			this.ucBar.To = new DateTime(2009, 7, 25, 22, 57, 46, 531);
			this.img.ImageStream = (ImageCollectionStreamer)componentResourceManager.GetObject("img.ImageStream");
			base.AutoScaleDimensions = new SizeF(6f, 13f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.Controls.Add(this.plTop);
			base.Name = "XucDetailList";
			base.Size = new Size(754, 60);
			((ISupportInitialize)this.plTop).EndInit();
			this.plTop.ResumeLayout(false);
			((ISupportInitialize)this.img).EndInit();
			base.ResumeLayout(false);
		}
	}
}
